package com.scsj.supermarket.view.activity.shopermodel;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

import com.scsj.supermarket.R;
import com.scsj.supermarket.utils.SkipUtils;
import com.scsj.supermarket.view.activity.baseactivitymodel.BaseActivity;

/**
 * 商家入驻界面
 */

public class BusinessCheckInActivity extends BaseActivity implements View.OnClickListener{

    private LinearLayout openShopProcess,openShopRequired,chargesDescription,commonQuestions,openshopNow;

    @Override
    protected void createView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_business_checkin);
        initView();
        initListener();
        initData();
    }

    @Override
    protected void initView() {

        initToolbar();
        setTitle("商家入驻");
        hasBack(true);

        //开店流程
        openShopProcess= findViewById(R.id.openshop_process);
        //开店要求
        openShopRequired= findViewById(R.id.openshop_required);
        //资费说明
        chargesDescription= findViewById(R.id.charges_description);
        //常见问题
        commonQuestions= findViewById(R.id.common_questions);
        //立即开店
        openshopNow= findViewById(R.id.openshop_now);
    }

    @Override
    protected void initListener() {
        openShopProcess.setOnClickListener(this);
        openShopRequired.setOnClickListener(this);
        chargesDescription.setOnClickListener(this);
        commonQuestions.setOnClickListener(this);
        openshopNow.setOnClickListener(this);
    }

    @Override
    protected void initData() {

    }

    @Override
    public void onClick(View view) {

        switch (view.getId()){
            case R.id.openshop_process:
                SkipUtils.toCoupon(this);
                break;
            case R.id.openshop_required:
                break;
            case R.id.charges_description:
                break;
            case R.id.common_questions:
                break;
            case R.id.openshop_now:
                SkipUtils.toRegisterFirstStep(this);
                break;
                default:
                    break;

        }
    }
}
